package com.wave.gate.constant;


/**
 * 缓存的key 常量
 * 
 * @author ruoyi
 */
public class CommonConstants
{
    //十六进制
    public static final boolean IS_HEX = true;

    //非十六进制
    public static final boolean NO_HEX = false;

    //串口COM2（485串口，电子秤）
    public static final String COM_NODE0 = "/dev/ttyS0";

    //串口COM5（手机二维码）
    public static final String COM_NODE1 = "/dev/ttyVIZ0";

    //串口COM6（token二维码）
    public static final String COM_NODE2 = "/dev/ttyVIZ1";

    //串口COM7（暂定）
    public static final String COM_NODE3 = "/dev/ttyVIZ2";

    //串口COM8（暂定）
    public static final String COM_NODE4 = "/dev/ttyVIZ3";

    //GPIO号（暂定）
    public static final String GPIO_NUMBER = "150";

    //电子秤1置零指令
    //老称
    public static final String ZEROORDER1_1 = "01050009FF005C38";
    public static final String ZEROORDER2_1 = "0131025A0379";
    //电子秤2置零指令
    //老称
    public static final String ZEROORDER1_2 = "02050009FF005C0B";
    public static final String ZEROORDER2_2 = "0132025A0379";

    //电子秤1零点标定指令
    public static final String ZEROADJUST1 = "0110100000050A47433030CFCF0001000A20F6";

    //电子秤2零点标定指令
    public static final String ZEROADJUST2 = "0210100000050A47433030CFCF0001000AD006";

    //电子秤1称重指令
    //老称（暂时没用了）
    public static final String WEIGHTORDER1_1 = "010400040002300A";
    public static final String WEIGHTORDER2_1 = "013102470374";

    //电子秤2称重指令
    //老称（暂时没用了）
    public static final String WEIGHTORDER1_2 = "0204000400023039";
    public static final String WEIGHTORDER2_2 = "013202470374";

    //修改电子秤地址为2
    public static final String WEIGHTEDIT = "010600330002F804";






}
